<?php
namespace App\Services;

use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\DB;

/**
 *
 * 缓存服务层
 *
 * @author maqu
 *
 */
class CacheService extends BaseService {

    const CACHE_KEY_city_data = 'maqu.data.front.city_data';

    public function setCityData($key, $value){
        Cache::put(self::CACHE_KEY_city_data.$key,$value,2*60);
    }

    public function getCityData($key){
        Cache::get(self::CACHE_KEY_city_data.$key);
    }

}